package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_user_sharing
 * @author 
 */
public class SesUserSharing implements Serializable {
    /**
     * ID,主键PK
     */
    private Long usersharingid;

    /**
     * 投资金额
     */
    private Float usersharingamount;

    /**
     * 用户表ID
     */
    private Long userid;

    /**
     * 收益分成
     */
    private Float usersharing;

    private static final long serialVersionUID = 1L;

    public Long getUsersharingid() {
        return usersharingid;
    }

    public void setUsersharingid(Long usersharingid) {
        this.usersharingid = usersharingid;
    }

    public Float getUsersharingamount() {
        return usersharingamount;
    }

    public void setUsersharingamount(Float usersharingamount) {
        this.usersharingamount = usersharingamount;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Float getUsersharing() {
        return usersharing;
    }

    public void setUsersharing(Float usersharing) {
        this.usersharing = usersharing;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesUserSharing other = (SesUserSharing) that;
        return (this.getUsersharingid() == null ? other.getUsersharingid() == null : this.getUsersharingid().equals(other.getUsersharingid()))
            && (this.getUsersharingamount() == null ? other.getUsersharingamount() == null : this.getUsersharingamount().equals(other.getUsersharingamount()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getUsersharing() == null ? other.getUsersharing() == null : this.getUsersharing().equals(other.getUsersharing()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUsersharingid() == null) ? 0 : getUsersharingid().hashCode());
        result = prime * result + ((getUsersharingamount() == null) ? 0 : getUsersharingamount().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getUsersharing() == null) ? 0 : getUsersharing().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", usersharingid=").append(usersharingid);
        sb.append(", usersharingamount=").append(usersharingamount);
        sb.append(", userid=").append(userid);
        sb.append(", usersharing=").append(usersharing);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}